<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <table>
        <thead>
        <tr>
            <th>id</th>
            <th>name</th>
            <th>remark</th>
            <th>createdTime</th>
        </tr>
        </thead>
        <tbody id="tbodyId">
        <tr>
            <td colspan="4">数据不见啦~</td>
        </tr>
        </tbody>
    </table>
</div>
<script src="js/jquery.min.js"></script>
<script>
    function findAll(){
        $.get("http://localhost:8081/goods/findGoods","",function(result){
            var body = $("#tbodyId");
            body.empty();

            result.forEach(function (item) {
                body.append(`<tr>
            <td>${item.id}</td>
            <td>${item.name}</td>
            <td>${item.remark}</td>
            <td>${item.createdTime}</td>
            </tr>`)
            })
        })
    }
    findAll()
</script>
</body>
</html>